package com.ruoyi.project.cms.knowledge.service;

import com.ruoyi.project.cms.knowledge.domain.Item;
import com.ruoyi.project.cms.knowledge.mapper.ItemMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ItemServiceImpl implements ItemService {


    @Autowired
    private ItemMapper itemMapper;

    @Override
    public List<Item> findMore(Item item) {
        return itemMapper.selectMore(item);
    }

    @Override
    public int save(Item item) {
        return itemMapper.insert(item);
    }

    @Override
    public int remove(String processlist) {

        return itemMapper.delete(1);
    }
        @Override
    public int change(Item item) {
        return itemMapper.update(item);
    }
}
